package red.stu.pconstraint.dto.mapper.token;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
 * 表达式
 * @author yihrmc @stu.red
 * @date 2019/11/15 9:39
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
public abstract class BlockExpression {

    /**
     * 类型
     */
    @NotNull
    private final String type;

    /**
     * 描述
     */
    @Nullable
    private String text;

    public BlockExpression(@NotNull String type) {
        this.type = type;
    }

}
